Skip to content

Transfer fix review feedback#532

Merged
jirhiker merged 6 commits intostagingfrom
transfer-fix-review-feedback
Feb 16, 2026
Merged

Transfer fix review feedback#532
jirhiker merged 6 commits intostagingfrom
transfer-fix-review-feedback

Conversation

@jirhiker
Copy link
Copy Markdown
Member

Why

This PR addresses the following problem / context:

  • Use bullet points here

How

Implementation summary - the following was changed / added / removed:

  • Use bullet points here

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

Copilot AI review requested due to automatic review settings February 16, 2026 22:19
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04c943e61a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates transfer logic to better handle legacy well/sensor fields by normalizing completion dates, improving status-code handling, and adding a set of hard-coded recording-interval overrides, with accompanying test coverage for the date normalization.

Changes:

  • Normalize CompletionDate values to date objects before validating/creating CreateWell.
  • Strip/validate well status codes during lexicon mapping and capture unknown codes as transfer errors.
  • Add static recording-interval overrides for specific PointIDs and introduce tests for the completion-date normalization.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
transfers/well_transfer.py Adds completion-date normalization and improves Status lexicon mapping/error capture.
transfers/util.py Introduces static recording-interval overrides used by SensorParameterEstimator.
tests/test_transfer_legacy_dates.py Adds unit tests validating completion-date normalization behavior.
core/lexicon.json Adds a new status_value term (“Open (unequipped)”) and adjusts formatting.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 16, 2026 22:29
jirhiker and others added 2 commits February 16, 2026 15:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

transfers/well_transfer.py:751

  • In the parallel transfer path, calling self._capture_error(...) here appends to self.errors (shared, not thread-safe) and those errors will be lost because transfer_parallel() later overwrites self.errors with the merged all_errors list. Capture this unknown-status case into the per-batch batch_errors list (or a thread-safe aggregator) instead of using _capture_error directly inside worker threads.
                )
            )

            for code, monitoring_frequency in NMA_MONITORING_FREQUENCY.items():

@jirhiker jirhiker merged commit 7b128dd into staging Feb 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants